# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=py3-kazoo
pkgver=0_git20211202
_gitrev=f585d605eea0a37a08aae95a8cc259b80da2ecf0 # tag/rel is 16 months behind
pkgrel=4
pkgdesc="Python library for Apache Zookeeper"
url="https://github.com/python-zk/kazoo"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="$pkgname-$_gitrev.tar.gz::https://github.com/python-zk/kazoo/archive/$_gitrev.tar.gz"
builddir="$srcdir/kazoo-$_gitrev"
options="!check" # test requires zookeeper server

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
70b3065ff5b1d119fa32937843c20dce3a355db53980c85168b2b654edb846b917ab3a612e22c0ce99e1f2d79579d90dc6252889323255b16c2ce0a6b8b1f2a1  py3-kazoo-f585d605eea0a37a08aae95a8cc259b80da2ecf0.tar.gz
"
